package com.zjcode.cdcer.mapper;

import com.chinatechstar.component.commons.supports.PageData;
import com.zjcode.cdcer.model.CerReportProgress;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.LinkedHashMap;
import java.util.List;

@Mapper
public interface CerReportProgressMapper {
    /**
     * delete by primary key
     * @param id primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(String id);

    /**
     * insert record to table
     * @param record the record
     * @return insert count
     */
    int insert(CerReportProgress record);

    /**
     * insert record to table selective
     * @param record the record
     * @return insert count
     */
    int insertSelective(CerReportProgress record);

    /**
     * select by primary key
     * @param id primary key
     * @return object by primary key
     */
    CerReportProgress selectByPrimaryKey(String id);

    /**
     * update record selective
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(CerReportProgress record);

    /**
     * update record
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(CerReportProgress record);

    int updateBatch(List<CerReportProgress> list);

    int updateBatchSelective(List<CerReportProgress> list);

    int batchInsert(@Param("list") List<CerReportProgress> list);

    int deleteAll();

    List<LinkedHashMap<String, Object>> listPageData(PageData pageData);

    List<LinkedHashMap<String, Object>> queryAll(PageData pageData);
}